<template>

    <view class="container">
        <!-- 自定义导航栏 -->
        <custom-navbar title="搜索结果">
        </custom-navbar>
        <scroll-view class="main-content" :style="{ paddingTop: navbarTotalHeight + 'px' }" scroll-y="true"
            refresher-enabled="true">
            <view>
                搜索参数：{{ content  }}
            </view>
        </scroll-view>

    </view>
</template>
<script>
import CustomNavbar from '@/components/custom-navbar/custom-navbar.vue';
export default {
    data() {
        return {
            content: '',
            navbarTotalHeight: 132,
        };
    },
    onLoad(e) {
        console.log(e);
        
        //接收传递的参数或结果
        this.content = decodeURIComponent(e.url || '')
    }
}
</script>

<style scoped>
.container {
    background-color: #f5f5f5;
    min-height: 100vh;
}

.main-content {
    height: calc(100vh - 132rpx - 120rpx);
    padding-bottom: 140rpx;
}
</style>